package com.dance.sharevalidator.service.impl;

import com.dance.sharevalidator.entity.Emp;
import com.dance.sharevalidator.service.IEmpService;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;

@Service
//@Validated
public class EmpService implements IEmpService {
    @Override
    public void add(/*@Valid*/ Emp emp) {
        // 写业务逻辑
        System.out.println("员工添加成功");
    }

    @Override
    public Emp getById(Long id) {
        return null;
    }
}
